package cn.xz.mxxz.adapter

import android.widget.TextView
import cn.xz.mxxz.R
import cn.xz.mxxz.bean.ListBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 *通用一级适配器*/
class Map1Adapter: BaseQuickAdapter<ListBean, BaseViewHolder>(R.layout.item_map_1) {

    override fun convert(holder: BaseViewHolder, item: ListBean) {

        val tvTxt = holder.getView<TextView>(R.id.tv_txt)

        tvTxt.text = item.name

        tvTxt.isSelected = item.select
    }
}